home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / oper_sys / deltablu / usflcnst.h < prev   
Encoding:
Text File  |  1993-08-17  |  767 b   |  17 lines

  1. /***************************************************************************
  2.  UsefulConstraints.h
  3.  
  4.     Some useful constraints. Each function instantiates and installs
  5.     a constraint on the argument variables.
  6.  
  7. ****************************************************************************/
  8.  
  9. Constraint StayC(Variable v, int);                /* keep v constant */
  10. Constraint EditC(Variable v, int);                /* change v */
  11. Constraint EqualsC(Variable a, Variable b, int);        /* a = b */
  12. Constraint AddC(Variable a, Variable b, Variable sum, int);    /* a + b = sum */
  13. Constraint MultiplyC(Variable a, Variable b, Variable prod, int);    /* a * b = prod */
  14. Constraint ScaleOffsetC(Variable src, Variable scale, Variable offset, Variable dest, int);
  15.                                 /* (src * scale) + offset = dest*/
  16.  
  17.